﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace seiacpscs_a2.datastructures.tree
{
    class TreeNode
    {
        private int item;

        public int Item
        {
            get { return item; }
            set { item = value; }
        }

        private TreeNode left;

        public TreeNode Left
        {
            get { return left; }
            set { left = value; }
        }

        private TreeNode right;

        public TreeNode Right
        {
            get { return right; }
            set { right = value; }
        }

        public TreeNode(int item, TreeNode left, TreeNode right)
        {
            this.item = item;
            this.left = left;
            this.right = right;

        }

    }
}
